package com.oa.srms.apps.business.goods;

import java.util.List;

import com.oa.srms.apps.entity.goods.GoodInfoValue;

public interface IGoodInfoService {
	public Integer addGoodInfo(String goodNo, String goodName,
			Integer goodNum) throws Exception;

	public void modifyGoodInfo(Integer id, String goodNo,
			String goodName, Integer goodNum) throws Exception;

	public void deleteGoodInfo(Integer id) throws Exception;
	
	public void toSubNum(Integer id) throws Exception;
	
	public void toEnable(Integer id) throws Exception;
	
	public void toDisable(Integer id) throws Exception;

	public GoodInfoValue queryById(Integer id) throws Exception;

	public List<GoodInfoValue> queryGoodInfo(String goodName, Integer states ,Integer rows, Integer pageNo) throws Exception;
	
	public List<GoodInfoValue> queryGoodInfo(Integer states) throws Exception;
	
	public Integer getTotalPageNumber(String goodName, Integer states, Integer rows) throws Exception;
	
	public Integer getTotalNumber();
}
